﻿<Window x:Class="WpfMembershipAdmin.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Role Provider Manager" Height="330" Width="483" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen">

    <DockPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Name="dockPanel1">
        <Menu DockPanel.Dock="Top">
            <MenuItem Header="Tools">
                <MenuItem Header="Add Features to Database" Click="AddDbFeatures_MenuItem_Click" />
                <MenuItem Header="Remove Features from Database" Click="RemoveDbFeatures_MenuItem_Click" />
                <MenuItem Header="Generate User Password" Click="GenerateUserPassword_MenuItem_Click" />
                <MenuItem Header="Generate User Role Mapping SQL Script" Click="GenerateUserRoleMappingSql_MenuItem_Click" />
            </MenuItem>
            <MenuItem Header="Roles">
                <MenuItem Header="Add Role" Click="AddRole_MenuItem_Click" />
                <MenuItem Header="Remove Role"  Click="RemoveRole_MenuItem_Click" />
            </MenuItem>
            <MenuItem Header="Users">
                <MenuItem Header="Add User" Click="AddUser_MenuItem_Click" />
                <MenuItem Header="Remove User" Click="RemoveUser_MenuItem_Click" />
            </MenuItem>
        </Menu>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="160"/>
                <ColumnDefinition Width="Auto" MinWidth="5" />
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            
            <TreeView Grid.Column="0" Name="mainTreeView" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" />
            
            <GridSplitter Grid.Column="1"
              HorizontalAlignment="Center"
              VerticalAlignment="Stretch"
              Background="Black" 
              ShowsPreview="True"
              Width="5"
              />

            <ListView Grid.Column="3" Name="resultsListView" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" />
        </Grid>

    </DockPanel>
</Window>
